<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        // var obj1 = {
        //     name: "1707B",
        //     count: 43,
        // }

        // var obj1 = {
        //     name: "1707A",
        //     count: 53,
        // }

        // var obj2 = {
        //     name: "1707C",
        //     count: 53,
        // }

        function myClass(name, count) {
            var obj = {}
            obj.name = name
            obj.count = count
            return obj
        }

        var obj = myClass("1707B", 43)
        var obj1 = myClass("1707A", 53)
        console.log(obj)
        console.log(obj1)
    </script>
</body>

</html>